package cheme.ProcessEditor.Parts.Equations;

import org.eclipse.draw2d.IFigure;
import org.eclipse.gef.EditPolicy;

import cheme.ProcessEditor.Figures.EquationListFig;
import cheme.ProcessEditor.Table.AbstractListPart;
import cheme.ProcessModel.Equations.EquationList;

public class PartEquationList extends AbstractListPart 
{
	@Override
	protected IFigure createFigure()
	{
		return  new EquationListFig();
	}

	@Override
	protected void createEditPolicies()
	{
		installEditPolicy(EditPolicy.COMPONENT_ROLE, new ccc_PolicyEquationList());
		installEditPolicy(EditPolicy.LAYOUT_ROLE, new PolicyEquationListLayout());
//		installEditPolicy(EditPolicy.CONTAINER_ROLE, new DescComponentContainerPolicy());
	}
	
	public EquationList getModel()
	{
		return (EquationList)super.getModel();
	}
}
